package com.spn.blog.api.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 服务器发送给浏览器的msg
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultMessage {
    private Boolean isSystem;
    private String fromName;
    private Object message;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm", timezone = "GMT+8")
    private Date time;
}
